package com.ruoyi.project.stat.paeaReportWorkload.domain;

import com.ruoyi.common.enums.WorkloadType;
import java.util.ArrayList;
import java.util.List;

public class StatisticsBpoWorkloadWrapper extends StatisticsWorkloadWrapper {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2589769853570975776L;
	private int scanDayBatchNum=0;
	private int scanDayWorkload=0;
	private int scanMonthBatchNum=0;
	private int scanMonthWorkload=0;
	private int scanYearBatchNum=0;
	private int scanYearWorkload=0;
	private int inputDayBatchNum=0;
	private int inputDayWorkload=0;
	private int inputMonthBatchNum=0;
	private int inputMonthWorkload=0;
	private int inputYearBatchNum=0;
	private int inputYearWorkload=0;

	private int forceInputDayBatchNum=0;
	private int forceInputDayWorkload=0;

	private int forceInputMonthBatchNum=0;
	private int forceInputMonthWorkload=0;

	private int forceInputYearBatchNum=0;
	private int forceInputYearWorkload=0;

	private int beBalInputDayBatchNum=0;
	private int beBalInputDayWorkload=0;

	private int beBalInputMonthBatchNum=0;
	private int beBalInputMonthWorkload=0;

	private int beBalInputYearBatchNum=0;
	private int beBalInputYearWorkload=0;

	
	private int beBalScanDayBatchNum=0;
	private int beBalScanDayWorkload=0;

	private int beBalScanMonthBatchNum=0;
	private int beBalScanMonthWorkload=0;

	private int beBalScanYearBatchNum=0;
	private int beBalScanYearWorkload=0;
	
	/**
	 * add by ph.huang 1.打包;2.入箱.
	 */
	
	private int packedDayBatchNum=0;
	private int packedDayWorkload=0;

	private int packedMonthBatchNum=0;
	private int packedMonthWorkload=0;

	private int packedYearBatchNum=0;
	private int packedYearWorkload=0;
	
	
	private int inBoxDayBatchNum=0;
	private int inBoxDayWorkload=0;

	private int inBoxMonthBatchNum=0;
	private int inBoxMonthWorkload=0;

	private int inBoxYearBatchNum=0;
	private int inBoxYearWorkload=0;
	
	
	
	
	public StatisticsBpoWorkloadWrapper(String organCode, String organName,
			String userCode, String userName) {
		super(organCode, organName, userCode, userName);
	}

	public static List<StatisticsWorkloadWrapper> toStatisticsWorkloadWrapperList(
			List<StatisticsWorkload> statisticsWorkloads) {
		List<StatisticsWorkloadWrapper> wrappers = new ArrayList<StatisticsWorkloadWrapper>();
		String key = null;
		StatisticsBpoWorkloadWrapper statisticsWorkloadWrapper = null;
		for (StatisticsWorkload statisticsWorkload : statisticsWorkloads) {
			
			String organTellerString = statisticsWorkload
					.getOrganTellerString();
			if (statisticsWorkload.getOrganTellerString().equals(key) == false) {
				key = organTellerString;
				statisticsWorkloadWrapper = new StatisticsBpoWorkloadWrapper(
						statisticsWorkload.getOrganCode(), statisticsWorkload
								.getOrganName(), statisticsWorkload
								.getUserCode(), statisticsWorkload
								.getUserName());

				wrappers.add(statisticsWorkloadWrapper);
			}
			if (WorkloadType.扫描.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendScanWorkload(statisticsWorkload);
			} else if (WorkloadType.人工补录.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendInputWorkload(statisticsWorkload);
			} else if (WorkloadType.强制补录.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendForceInputWorkload(statisticsWorkload);
			}else if (WorkloadType.对账单补录.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendBeBalInputWorkload(statisticsWorkload);
			}else if (WorkloadType.对账单扫描.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendBeBalScanWorkload(statisticsWorkload);
			} else if (WorkloadType.打包.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendPackedWorkload(statisticsWorkload);
			} else if (WorkloadType.入箱.getCode().equals(statisticsWorkload.getWorkType())) {
				statisticsWorkloadWrapper.appendInBoxWorkload(statisticsWorkload);
			}
		}
		return wrappers;

	}
	//add by bao.zhou 2012.05.18
	public void appendBeBalScanWorkload(StatisticsWorkload statisticsWorkload) {
		this.beBalScanDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.beBalScanDayWorkload = statisticsWorkload.getDayWorkload();
		this.beBalScanMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.beBalScanMonthWorkload = statisticsWorkload.getMonthworkload();
		this.beBalScanYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.beBalScanYearWorkload = statisticsWorkload.getYearWorkload();

	}
	//add end
	//add by bao.zhou 2012.05.18
	public void appendBeBalInputWorkload(StatisticsWorkload statisticsWorkload) {
		this.beBalInputDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.beBalInputDayWorkload = statisticsWorkload.getDayWorkload();
		this.beBalInputMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.beBalInputMonthWorkload = statisticsWorkload.getMonthworkload();
		this.beBalInputYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.beBalInputYearWorkload = statisticsWorkload.getYearWorkload();

	}
	//add end

	/**
	 * add by ph.huang
	 * date:2012-07-10
	 */
	public void appendPackedWorkload(StatisticsWorkload statisticsWorkload) {
		this.packedDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.packedDayWorkload = statisticsWorkload.getDayWorkload();
		this.packedMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.packedMonthWorkload = statisticsWorkload.getMonthworkload();
		this.packedYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.packedYearWorkload = statisticsWorkload.getYearWorkload();

	}
	
	public void appendInBoxWorkload(StatisticsWorkload statisticsWorkload) {
		this.inBoxDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.inBoxDayWorkload = statisticsWorkload.getDayWorkload();
		this.inBoxMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.inBoxMonthWorkload = statisticsWorkload.getMonthworkload();
		this.inBoxYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.inBoxYearWorkload = statisticsWorkload.getYearWorkload();

	}
	//add end
	public void appendForceInputWorkload(StatisticsWorkload statisticsWorkload) {
		this.forceInputDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.forceInputDayWorkload = statisticsWorkload.getDayWorkload();
		this.forceInputMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.forceInputMonthWorkload = statisticsWorkload.getMonthworkload();
		this.forceInputYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.forceInputYearWorkload = statisticsWorkload.getYearWorkload();

	}

	public void appendInputWorkload(StatisticsWorkload statisticsWorkload) {
		this.inputDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.inputDayWorkload = statisticsWorkload.getDayWorkload();
		this.inputMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.inputMonthWorkload = statisticsWorkload.getMonthworkload();
		this.inputYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.inputYearWorkload = statisticsWorkload.getYearWorkload();

	}

	public void appendScanWorkload(StatisticsWorkload statisticsWorkload) {

		this.scanDayBatchNum = statisticsWorkload.getDayBatchNum();
		this.scanDayWorkload = statisticsWorkload.getDayWorkload()/2;
		this.scanMonthBatchNum = statisticsWorkload.getMonthBatchNum();
		this.scanMonthWorkload = statisticsWorkload.getMonthworkload()/2;
		this.scanYearBatchNum = statisticsWorkload.getYearBatchNum();
		this.scanYearWorkload = statisticsWorkload.getYearWorkload()/2;

	}
//求和方法
public void addPropertyNum(StatisticsBpoWorkloadWrapper pojo) {

	//扫描
	this.scanDayBatchNum = this.scanDayBatchNum+pojo.getScanDayBatchNum();
	this.scanDayWorkload = this.scanDayWorkload+pojo.getScanDayWorkload();
	this.scanMonthBatchNum = this.scanMonthBatchNum+pojo.getScanMonthBatchNum();
	this.scanMonthWorkload = this.scanMonthWorkload+pojo.getScanMonthWorkload();
	this.scanYearBatchNum = this.scanYearBatchNum+pojo.getScanYearBatchNum();
	this.scanYearWorkload = this.scanYearWorkload+pojo.getScanYearWorkload();
	//人工补录
	this.inputDayBatchNum = this.inputDayBatchNum+pojo.getInputDayBatchNum();
	this.inputDayWorkload = this.inputDayWorkload+pojo.getInputDayWorkload();
	this.inputMonthBatchNum = this.inputMonthBatchNum+pojo.getInputMonthBatchNum();
	this.inputMonthWorkload = this.inputMonthWorkload+pojo.getInputMonthWorkload();
	this.inputYearBatchNum = this.inputYearBatchNum+pojo.getInputYearBatchNum();
	this.inputYearWorkload = this.inputYearWorkload+pojo.getInputYearWorkload();
	//强制补录
	this.forceInputDayBatchNum = this.forceInputDayBatchNum+pojo.getForceInputDayBatchNum();
	this.forceInputDayWorkload = this.forceInputDayWorkload+pojo.getForceInputDayWorkload();
	this.forceInputMonthBatchNum = this.forceInputMonthBatchNum+pojo.getForceInputMonthBatchNum();
	this.forceInputMonthWorkload = this.forceInputMonthWorkload+pojo.getForceInputMonthWorkload();
	this.forceInputYearBatchNum = this.forceInputYearBatchNum+pojo.getForceInputYearBatchNum();
	this.forceInputYearWorkload = this.forceInputYearWorkload+pojo.getForceInputYearWorkload();
	//对账单补录
	this.beBalInputDayBatchNum = this.beBalInputDayBatchNum+pojo.getBeBalInputDayBatchNum();
	this.beBalInputDayWorkload = this.beBalInputDayWorkload+pojo.getBeBalInputDayWorkload();
	this.beBalInputMonthBatchNum = this.beBalInputMonthBatchNum+pojo.getBeBalInputMonthBatchNum();
	this.beBalInputMonthWorkload = this.beBalInputMonthWorkload+pojo.getBeBalInputMonthWorkload();
	this.beBalInputYearBatchNum = this.beBalInputYearBatchNum+pojo.getBeBalInputYearBatchNum();
	this.beBalInputYearWorkload = this.beBalInputYearWorkload+pojo.getBeBalInputYearWorkload();
	//对账单扫描
	this.beBalScanDayBatchNum = this.beBalScanDayBatchNum+pojo.getBeBalScanDayBatchNum();
	this.beBalScanDayWorkload = this.beBalScanDayWorkload+pojo.getBeBalScanDayWorkload();
	this.beBalScanMonthBatchNum = this.beBalScanMonthBatchNum+pojo.getBeBalScanMonthBatchNum();
	this.beBalScanMonthWorkload = this.beBalScanMonthWorkload+pojo.getBeBalScanMonthWorkload();
	this.beBalScanYearBatchNum = this.beBalScanYearBatchNum+pojo.getBeBalScanYearBatchNum();
	this.beBalScanYearWorkload = this.beBalScanYearWorkload+pojo.getBeBalScanYearWorkload();
	//打包
	this.packedDayBatchNum = this.packedDayBatchNum+pojo.getPackedDayBatchNum();
	this.packedDayWorkload = this.packedDayWorkload+pojo.getPackedDayWorkload();
	this.packedMonthBatchNum = this.packedMonthBatchNum+pojo.getPackedMonthBatchNum();
	this.packedMonthWorkload = this.packedMonthWorkload +pojo.getPackedMonthWorkload();
	this.packedYearBatchNum = this.packedYearBatchNum +pojo.getPackedYearBatchNum();
	this.packedYearWorkload = this.packedYearWorkload+pojo.getPackedYearWorkload();
	//入箱
	this.inBoxDayBatchNum = this.inBoxDayBatchNum+pojo.getInBoxDayBatchNum();
	this.inBoxDayWorkload = this.inBoxDayWorkload+pojo.getInBoxDayWorkload();
	this.inBoxMonthBatchNum = this.inBoxMonthBatchNum+pojo.getInBoxMonthBatchNum();
	this.inBoxMonthWorkload = this.inBoxMonthWorkload+pojo.getInBoxMonthWorkload();
	this.inBoxYearBatchNum = this.inBoxYearBatchNum+pojo.getInBoxYearBatchNum();
	this.inBoxYearWorkload = this.inBoxYearWorkload+pojo.getInBoxYearWorkload();

}


	public int getScanDayBatchNum() {
		return scanDayBatchNum;
	}

	public void setScanDayBatchNum(int scanDayBatchNum) {
		this.scanDayBatchNum = scanDayBatchNum;
	}

	public int getScanDayWorkload() {
		return scanDayWorkload;
	}

	public void setScanDayWorkload(int scanDayWorkload) {
		this.scanDayWorkload = scanDayWorkload;
	}

	public int getScanMonthBatchNum() {
		return scanMonthBatchNum;
	}

	public void setScanMonthBatchNum(int scanMonthBatchNum) {
		this.scanMonthBatchNum = scanMonthBatchNum;
	}

	public int getScanYearBatchNum() {
		return scanYearBatchNum;
	}

	public void setScanYearBatchNum(int scanYearBatchNum) {
		this.scanYearBatchNum = scanYearBatchNum;
	}

	public int getScanYearWorkload() {
		return scanYearWorkload;
	}

	public void setScanYearWorkload(int scanYearWorkload) {
		this.scanYearWorkload = scanYearWorkload;
	}

	public int getInputDayBatchNum() {
		return inputDayBatchNum;
	}

	public void setInputDayBatchNum(int inputDayBatchNum) {
		this.inputDayBatchNum = inputDayBatchNum;
	}

	public int getInputDayWorkload() {
		return inputDayWorkload;
	}

	public void setInputDayWorkload(int inputDayWorkload) {
		this.inputDayWorkload = inputDayWorkload;
	}

	public int getInputMonthBatchNum() {
		return inputMonthBatchNum;
	}

	public void setInputMonthBatchNum(int inputMonthBatchNum) {
		this.inputMonthBatchNum = inputMonthBatchNum;
	}

	public int getInputMonthWorkload() {
		return inputMonthWorkload;
	}

	public void setInputMonthWorkload(int inputMonthWorkload) {
		this.inputMonthWorkload = inputMonthWorkload;
	}

	public int getInputYearBatchNum() {
		return inputYearBatchNum;
	}

	public void setInputYearBatchNum(int inputYearBatchNum) {
		this.inputYearBatchNum = inputYearBatchNum;
	}

	public int getInputYearWorkload() {
		return inputYearWorkload;
	}

	public void setInputYearWorkload(int inputYearWorkload) {
		this.inputYearWorkload = inputYearWorkload;
	}

	public int getForceInputDayBatchNum() {
		return forceInputDayBatchNum;
	}

	public void setForceInputDayBatchNum(int forceInputDayBatchNum) {
		this.forceInputDayBatchNum = forceInputDayBatchNum;
	}

	public int getForceInputDayWorkload() {
		return forceInputDayWorkload;
	}

	public void setForceInputDayWorkload(int forceInputDayWorkload) {
		this.forceInputDayWorkload = forceInputDayWorkload;
	}

	public int getForceInputMonthBatchNum() {
		return forceInputMonthBatchNum;
	}

	public void setForceInputMonthBatchNum(int forceInputMonthBatchNum) {
		this.forceInputMonthBatchNum = forceInputMonthBatchNum;
	}

	public int getForceInputMonthWorkload() {
		return forceInputMonthWorkload;
	}

	public void setForceInputMonthWorkload(int forceInputMonthworkload) {
		this.forceInputMonthWorkload = forceInputMonthworkload;
	}

	public int getForceInputYearBatchNum() {
		return forceInputYearBatchNum;
	}

	public void setForceInputYearBatchNum(int forceInputYearBatchNum) {
		this.forceInputYearBatchNum = forceInputYearBatchNum;
	}

	public int getForceInputYearWorkload() {
		return forceInputYearWorkload;
	}

	public void setForceInputYearWorkload(int forceInputYearWorkload) {
		this.forceInputYearWorkload = forceInputYearWorkload;
	}

	public int getScanMonthWorkload() {
		return scanMonthWorkload;
	}

	public void setScanMonthWorkload(int scanMonthWorkload) {
		this.scanMonthWorkload = scanMonthWorkload;
	}

	public int getBeBalInputDayBatchNum() {
		return beBalInputDayBatchNum;
	}

	public void setBeBalInputDayBatchNum(int beBalInputDayBatchNum) {
		this.beBalInputDayBatchNum = beBalInputDayBatchNum;
	}

	public int getBeBalInputDayWorkload() {
		return beBalInputDayWorkload;
	}

	public void setBeBalInputDayWorkload(int beBalInputDayWorkload) {
		this.beBalInputDayWorkload = beBalInputDayWorkload;
	}

	public int getBeBalInputMonthBatchNum() {
		return beBalInputMonthBatchNum;
	}

	public void setBeBalInputMonthBatchNum(int beBalInputMonthBatchNum) {
		this.beBalInputMonthBatchNum = beBalInputMonthBatchNum;
	}

	public int getBeBalInputMonthWorkload() {
		return beBalInputMonthWorkload;
	}

	public void setBeBalInputMonthWorkload(int beBalInputMonthWorkload) {
		this.beBalInputMonthWorkload = beBalInputMonthWorkload;
	}

	public int getBeBalInputYearBatchNum() {
		return beBalInputYearBatchNum;
	}

	public void setBeBalInputYearBatchNum(int beBalInputYearBatchNum) {
		this.beBalInputYearBatchNum = beBalInputYearBatchNum;
	}

	public int getBeBalInputYearWorkload() {
		return beBalInputYearWorkload;
	}

	public void setBeBalInputYearWorkload(int beBalInputYearWorkload) {
		this.beBalInputYearWorkload = beBalInputYearWorkload;
	}

	public int getBeBalScanDayBatchNum() {
		return beBalScanDayBatchNum;
	}

	public void setBeBalScanDayBatchNum(int beBalScanDayBatchNum) {
		this.beBalScanDayBatchNum = beBalScanDayBatchNum;
	}

	public int getBeBalScanDayWorkload() {
		return beBalScanDayWorkload;
	}

	public void setBeBalScanDayWorkload(int beBalScanDayWorkload) {
		this.beBalScanDayWorkload = beBalScanDayWorkload;
	}

	public int getBeBalScanMonthBatchNum() {
		return beBalScanMonthBatchNum;
	}

	public void setBeBalScanMonthBatchNum(int beBalScanMonthBatchNum) {
		this.beBalScanMonthBatchNum = beBalScanMonthBatchNum;
	}

	public int getBeBalScanMonthWorkload() {
		return beBalScanMonthWorkload;
	}

	public void setBeBalScanMonthWorkload(int beBalScanMonthWorkload) {
		this.beBalScanMonthWorkload = beBalScanMonthWorkload;
	}

	public int getBeBalScanYearBatchNum() {
		return beBalScanYearBatchNum;
	}

	public void setBeBalScanYearBatchNum(int beBalScanYearBatchNum) {
		this.beBalScanYearBatchNum = beBalScanYearBatchNum;
	}

	public int getBeBalScanYearWorkload() {
		return beBalScanYearWorkload;
	}

	public void setBeBalScanYearWorkload(int beBalScanYearWorkload) {
		this.beBalScanYearWorkload = beBalScanYearWorkload;
	}

	public int getPackedDayBatchNum() {
		return packedDayBatchNum;
	}

	public void setPackedDayBatchNum(int packedDayBatchNum) {
		this.packedDayBatchNum = packedDayBatchNum;
	}

	public int getPackedDayWorkload() {
		return packedDayWorkload;
	}

	public void setPackedDayWorkload(int packedDayWorkload) {
		this.packedDayWorkload = packedDayWorkload;
	}

	public int getPackedMonthBatchNum() {
		return packedMonthBatchNum;
	}

	public void setPackedMonthBatchNum(int packedMonthBatchNum) {
		this.packedMonthBatchNum = packedMonthBatchNum;
	}

	public int getPackedMonthWorkload() {
		return packedMonthWorkload;
	}

	public void setPackedMonthWorkload(int packedMonthWorkload) {
		this.packedMonthWorkload = packedMonthWorkload;
	}

	public int getPackedYearBatchNum() {
		return packedYearBatchNum;
	}

	public void setPackedYearBatchNum(int packedYearBatchNum) {
		this.packedYearBatchNum = packedYearBatchNum;
	}

	public int getPackedYearWorkload() {
		return packedYearWorkload;
	}

	public void setPackedYearWorkload(int packedYearWorkload) {
		this.packedYearWorkload = packedYearWorkload;
	}

	public int getInBoxDayBatchNum() {
		return inBoxDayBatchNum;
	}

	public void setInBoxDayBatchNum(int inBoxDayBatchNum) {
		this.inBoxDayBatchNum = inBoxDayBatchNum;
	}

	public int getInBoxDayWorkload() {
		return inBoxDayWorkload;
	}

	public void setInBoxDayWorkload(int inBoxDayWorkload) {
		this.inBoxDayWorkload = inBoxDayWorkload;
	}

	public int getInBoxMonthBatchNum() {
		return inBoxMonthBatchNum;
	}

	public void setInBoxMonthBatchNum(int inBoxMonthBatchNum) {
		this.inBoxMonthBatchNum = inBoxMonthBatchNum;
	}

	public int getInBoxMonthWorkload() {
		return inBoxMonthWorkload;
	}

	public void setInBoxMonthWorkload(int inBoxMonthWorkload) {
		this.inBoxMonthWorkload = inBoxMonthWorkload;
	}

	public int getInBoxYearBatchNum() {
		return inBoxYearBatchNum;
	}

	public void setInBoxYearBatchNum(int inBoxYearBatchNum) {
		this.inBoxYearBatchNum = inBoxYearBatchNum;
	}

	public int getInBoxYearWorkload() {
		return inBoxYearWorkload;
	}

	public void setInBoxYearWorkload(int inBoxYearWorkload) {
		this.inBoxYearWorkload = inBoxYearWorkload;
	}

}
